<!--
 * @Description: 
 * @Author: charles
 * @Date: 2021-05-05 22:02:56
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2021-09-29 15:23:38
-->
<template>
  
    <div id="contain" style="height: 95%"></div>
  
</template>

<script>
// @ is an alias to /src

import { Liquid } from '@antv/g2plot';
export default {
  data() {
    return {
      chart_data: 0.25,
    };
  },
  methods: {
    getChart() {
      const liquidPlot = new Liquid('contain', {
  percent: 0.25,
});
liquidPlot.render();
    }
  },
  mounted() {
    //实例挂载完触发
    this.getChart();
  },
};
</script>
